<cfparam name="form.search" default="">

<form action="test2.cfm" method="post">
<cfoutput><input type="text" name="search" value="#htmlEditFormat(form.search)#"></cfoutput>
<input type="submit" value="Search">
</form>

<cfif len(trim(form.search))>

	<cf_search index="cfmxadmin" term="#form.search#" field="contents">
	<cfdump var="#result#">
	
</cfif>